package com.demo.user.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

/**
 * @author zhaoxinguo on 2017/9/13.
 */
@Data
@Table("auth_user_role")
public class AuthUserRole {

    @Id(keyType = KeyType.Generator,value = KeyGenerators.flexId)
    private long id;

    @Column("role_id")
    private Long roleId;

    @Column("user_id")
    private Long userId;
}
